package operation;

import book.bookList;

import java.awt.print.Book;

public class ExitBook implements IOperation{
    @Override
    public void work(bookList books) {
        System.out.println("退出系统...");
        int currentSize = bookList.getUsedSize();
        for (int i = 0; i < currentSize; i++) {
            bookList.setBooks(i,null);
        }
//        bookList.getUsedSize(0);
        System.exit(0);
    }
}
